import Notify from "@vant/weapp/notify/notify"
export const tipMixin={
  tip
}
export const tipBehavior=Behavior({
  methods:{
    tip
  },
  onUnload() {
    Notify.clear()
  },
})
function tip(message,type="warning"){
  Notify.clear()
  Notify({
    message: message,
    selector:"#tip",
    duration:1000,
    type:type
  });
}